package com.mofang.ticketing.user.serve.account.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author LGC
 * @date 2023/3/14 11:28
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel(value = "平台修改手机号(账号)")
public class AccountUpdatePhoneReqDTO implements Serializable {
    private static final long serialVersionUID = -1270879140086081514L;

    @NotBlank(message = "旧手机号不能为空")
    @ApiModelProperty(value = "旧密码")
    private String oldPhone;

    @NotBlank(message = "新手机号不能为空")
    @ApiModelProperty(value = "新手机号")
    private String newPhone;

    @NotBlank(message = "确认手机号不能为空")
    @ApiModelProperty(value = "确认手机号")
    private String confirmPhone;
}
